package com.zhengxing.jienci.web.enums;

/**
 * @author 浪遏飞舟
 * @create 2020-06-23 10:37
 * 返回码和提示信息枚举
 */
public enum ResultCode {

    //成功
    SUCCESS("200","成功"),

    //警告
    WARN("400","参数异常"),

    //失败
    ERROR("500","失败");

    //状态码
    private String code;

    //提示信息
    private String msg;

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
